package com.fuershiye.woman.monitor.model;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @author yongyongdong
 *
 *	部门
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "department")
public class Department  extends LongIdEntity{
	
	//部门名称
	private String name;
	//部门简称
	private String sname;
	//部门编号 财政部 CZ_2_001
	//部门简称 2位 部门级别1位 部门3位
	private String code;

	//depart Type 中的id
	private Long type;
	
	//部门级别 0:系统;1:国家级;2:省/部级;3:地级市;4:区县级;5:乡镇级;6:其他
	private Integer level;
	
	//父级的 id
	private Long pid;
	
	//所属地域的 id,表area的ID
	private Long area;
	
	//创建时间
	private Date ctime;
	//修改时间
	private Date mtime;
	/** 单位负责人 */
	private String charge;
	/** 部门统计负责人 */
	private String author;
	//编辑人员
	private String editor;
	private String phone;
	/** 部门联系人 */
	private String contact;
	private String email;
	private String address;
	//0:删除;1:正常
	private Integer status;
	
	
	public Long getArea() {
		return area;
	}
	public void setArea(Long area) {
		this.area = area;
	}
	public void setName(String name) {
		this.name = name;
	}
	public void setSname(String sname) {
		this.sname = sname;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public void setType(Long type) {
		this.type = type;
	}
	public void setLevel(Integer level) {
		this.level = level;
	}
	public void setPid(Long pid) {
		this.pid = pid;
	}
	public void setCtime(Date ctime) {
		this.ctime = ctime;
	}
	public void setMtime(Date mtime) {
		this.mtime = mtime;
	}
	public void setCharge(String charge) {
		this.charge = charge;
	}
	public void setAuthor(String author) {
		this.author = author;
	}
	public void setEditor(String editor) {
		this.editor = editor;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public void setContact(String contact) {
		this.contact = contact;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
	
	public String getName() {
		return name;
	}
	public String getSname() {
		return sname;
	}
	public String getCode() {
		return code;
	}
	public Long getType() {
		return type;
	}
	public Integer getLevel() {
		return level;
	}
	public Long getPid() {
		return pid;
	}
	public Date getCtime() {
		return ctime;
	}
	public Date getMtime() {
		return mtime;
	}
	public String getCharge() {
		return charge;
	}
	public String getAuthor() {
		return author;
	}
	public String getEditor() {
		return editor;
	}
	public String getPhone() {
		return phone;
	}
	public String getContact() {
		return contact;
	}
	public String getEmail() {
		return email;
	}
	public String getAddress() {
		return address;
	}
	public Integer getStatus() {
		return status;
	}
	
}

